use core::fmt;

enum FtsError {
    HeaderError,
    ParserError(String),
}

impl fmt::Display for FtsError {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match self {
            Self::HeaderError => write!(f, "header error"),
            Self::ParserError(value) => write!(f, "{}", value.clone()),
        }
    }
}
